// 导入封装好的axios
import myAxios from "@/axios";

// 获取验证码
// http://47.92.25.81:8081/code
export function getVC() {
  return myAxios.get("/code");
}

// /user/register/{username}/{password}/{nickname}/{vc}
export function register(username, nickname, password, vc) {
  return myAxios.post(
    `/user/register/${username}/${password}/${nickname}/${vc}`
  );
}
export function login(phone, password) {
  return myAxios.post(
    `/user/login/${phone}/${password}`
  );
}
export function forgetPW(phone, password,vc) {
  return myAxios.post(
    `/user/changePwd/${phone}/${password}/${vc}`
  );
}
